import request from '@/utils/request'

//常量
const api_name = '/member/memberlevel'

export default {
    getDataList(searchObj) {
        return request({
            url: `${api_name}/page`,
            method: 'get',
            params: searchObj
        })
    },
    getAllList() {
        return request({
            url: `${api_name}/list`,
            method: 'get'
        })
    },
    createMemberLevel(data) {
        return request({
            url: `${api_name}/create`,
            method: 'post',
            data: data
        })
    },
    getMemberLevel(id) {
        return request({
            url: `${api_name}/info`,
            method: 'get',
            params: id
        })
    },
    updateMemberLevel(data) {
        return request({
            url: `${api_name}/update`,
            method: 'post',
            data: data
        })
    },
    removeMemberLevel(id) {
        return request({
            url: `${api_name}/delete`,
            method: 'post',
            data: id
        })
    }
}